using UnityEngine;
using System.Collections;

public class sPlayers : MonoBehaviour
{
	private static sPlayers instance = null;

	private sPlayers ()
	{
	}

	public static sPlayers Instance
	{
		get
		{
			if (instance == null)
			{
				Debug.Log("instantiate player manager");
                GameObject go = new GameObject();
                instance = go.AddComponent<sPlayers>();
                go.name = "sPlayers";
			}
			return instance;
		}
	}
	
	CharacterBehavior m_oBehavior;
	Transform m_tCharacter;
	
	public void Awake()
	{
		GameObject go = GameObject.Find("characterStuff");
		m_oBehavior = go.GetComponent<CharacterBehavior>();
		m_tCharacter = go.GetComponent<Transform>();
	}
	
	public CharacterBehavior getBehavior()
	{
		return m_oBehavior;
	}
	
	public Transform getTransform()
	{
		return m_tCharacter;
	}
	
	
}
